import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('../views/Home.vue')
  },
  {
    path: '/crowdfund',
    name: 'Crowdfund',
    component: () => import('@/components/crowdfund.vue')
  },
  {
    path: '/mimore',
    name: 'Mimore?id:1',
    component: () => import('@/components/crow/mimore.vue')
  },
  {
    path: '/past',
    name: 'Past',
    component: () => import('@/components/crow/past.vue')
  },
  {
    path: '/Zhuce',
    name: 'Zhuce',
    component: () =>
        import ("../views/login.vue")
},
{
    path: '/Register',
    name: 'Register',
    component: () =>
        import ("../views/Register.vue")
},
{
    path: '/Sousuo',
    name: 'Sousuo',
    component: () =>
        import ("../views/sousuo.vue")
},
  {
    path: '/firstr',
    name: 'First',
    component: () => import('@/components/first.vue')
  },
  {
    path: '/cart',
    name: 'Cart',
    component: () => import('../views/cart.vue')
  },
  {
    path: '/my',
    name: 'My',
    component: () => import('../views/my.vue')
  },{
    path: '/shangxin',
    name: 'shangxin',
    component: () => import('../views/shangxin.vue')
  },{
    path: '/free',
    name: 'free',
    component: () => import('../views/Freeshipping.vue')
  },{
    path: '/saodi',
    name: 'saodi',
    component: () => import('../views/zhendian.vue')
  },{
    path: '/classify',
    name: 'Classify',
    component: () => import( '../views/classify.vue')
  }, {
    path: '/list/:xiaoyu',
    name: 'List',
    component: () => import( '../views/list.vue')
  },
  {
    path: '/listdetails/:xiaoyuyu',
    name: 'Listdetails',
    component: () => import( '../views/listdetails.vue')
  },{
		path: '/particulars',
		name: 'particulars',
    component: () => import( '../views/Particulars.vue')
	},
	{
		path: '/Pay',
		name: 'Pay',
    component: () => import( '../views/Pay.vue')
	},
	{
		path: '/Index',
		name: 'Index',
    component: () => import( '../views/Index.vue')
  },
  
  {
    path: '*',
    name: '',
    component: () => import('../views/no.vue')
  }
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    
  
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
